
var TinyMCE_PS_ImageManager = {
	getInfo : function() {
		return {
			longname : "ImageManager TinyMCE Plugin",
			author : "Per Soderlind",
			authorurl : "http://www.soderlind.no/",
			infourl : "http://www.soderlind.no/ImageManager",
			version : tinyMCE.majorVersion + "." + tinyMCE.minorVersion
		};
	},

	getControlHTML : function(cn) {
		switch (cn) {
			case "ps_imagemanager_tinymceplugin":
				return tinyMCE.getButtonHTML(cn, 'ImageManager', '{$pluginurl}/../../gfx/images.png', 'ps_imagemanager');
		}
		return "";
	},

	execCommand : function(editor_id, element, command, user_interface, value) {
		switch (command) {
			case "ps_imagemanager":
				openImageManager();
			return true;
		}
		return false;
	}
};
tinyMCE.addPlugin("ps_imagemanager_tinymceplugin", TinyMCE_PS_ImageManager);
